package router

import (
	"trade_api/api"

	"github.com/gin-gonic/gin"
)

func InitApiRouter(r *gin.RouterGroup) {

	proveRouter := r.Group("/trade")
	{
		// proveRouter.POST("/create", middleware.JWTAuth(), middleware.IsPortalPorver(), api.PostCreateTradeProver)
		proveRouter.POST("/create", api.PostCreateTradeProver)
		proveRouter.GET("/hash/:hash", api.GetTradeRecord)
	}
}
